package com.accenture.portal.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.accenture.portal.dao.LinkMapper;
import com.accenture.portal.model.Link;

@Repository
public class LinkMapperImpl implements LinkMapper {

	@Autowired
	private LinkMapper lm;

	public List<Link> searchAllLink() {

		return lm.searchAllLink();
	}

	@Override
	public void addLink(Link link) {
		lm.addLink(link);

	}

	@Override
	public void deleteLink(Integer linkID) {
		lm.deleteLink(linkID);
	}

	@Override
	public void deleteLinkLink(Integer linkID) {
		lm.deleteLinkLink(linkID);

	}

	@Override
	public void updateLink(Link link) {
		lm.updateLink(link);

	}

	@Override
	public Link searchLinkByLinkId(int linkID) {
		return lm.searchLinkByLinkId(linkID);
	}

	@Override
	public List<Link> searchLinkByName(String linkname)
	{
		// TODO Auto-generated method stub
		return lm.searchLinkByName(linkname);
	}
	
	@Override
	public List<Link> searchQuickLink() {
		
		return lm.searchQuickLink();
	} 
}
